package com.content.management.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author xinghu
 * @version 1.0
 * @date 2020/3/2 12:29 上午
 */
@Target({TYPE, FIELD})
@Retention(RUNTIME)
@Documented
@RestController
public @interface ResponseResult {

	@AliasFor(annotation = RestController.class)
	String value() default "";
}
